package com.ereport.entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "adp")
public class ADP implements Serializable{

	@Id
	@GeneratedValue(generator="increment")
	@GenericGenerator(name="increment", strategy = "increment")
	private int id;
	@ManyToOne
	@JoinColumn(name="exe_id")
	private Executives exeId;
	private String adpName;
	private String accName;
	private String owner;
	private String orgType;
	private String industryType;
	private String activity;
	@Column(name="review_period")
	private String reviewPeriod;
	@Column(name="visit_freq")
	private String visitfreq;
	@Column(name="cont_freq")
	private String contfreq;
	@Column(name="design_spent")
	private String designSpent;
	@Column(name="production_spent")
	private String productionSpent;
	@Column(name="electr_components")
	private String electronicComponents;
	@Column(name="cables")
	private String cables;
	private String connectors;
	@Column(name="devlp_tools")
	private String devlpTools;
	@Column(name="MRO_prod")
	private String MROProd;
	private String fabrication;
	@Column(name="test_calibration")
	private String testCalibration;
	@Column(name="test_equipment")
	private String testEquipment;
	@Column(name="others_spend")
	private String othersSpend;
	@Column(name="cust_end_prod_details")
	private String custEndProdDetails;
	@Column(name="competitor_info")
	private String competitorInfo;
	public ADP(){
		
	}
	public ADP(Executives ex, String adpName, String accName, String owner,String orgType,
			String industType, String activity, String revPerid2,String visitFreq2, 
			String contFreq2, String designSpent2, String prodSpent,String electrComp, 
			String cables2, String connectors2, String devTools, String mROProd2,String fabrication2,
			String testCalbr, String testEquip, String others, String custEndProd, String comptInfo) {
		this.exeId=ex;
		this.adpName=adpName;
		this.accName=accName;
		this.owner=owner;
		this.orgType=orgType;
		this.industryType=industType;
		this.activity=activity;
		this.reviewPeriod=revPerid2;
		this.visitfreq=visitFreq2;
		this.contfreq=contFreq2;
		this.designSpent=designSpent2;
		this.productionSpent=prodSpent;
		this.electronicComponents=electrComp;
		this.cables=cables2;
		this.connectors=connectors2;
		this.devlpTools=devTools;
		this.MROProd=mROProd2;
		this.fabrication=fabrication2;
		this.testCalibration=testCalbr;
		this.testEquipment=testEquip;
		this.othersSpend=others;
		this.custEndProdDetails=custEndProd;
		this.competitorInfo=comptInfo;
	}
	
	public ADP( int id,Executives ex, String adpName, String accName, String owner,
			String orgType,String industType, String activity, String revPerid2, String visitFreq2,
			String contFreq2, String designSpent2, String prodSpent, String electrComp, String cables2, 
			String connectors2, String devTools, String mROProd2, String fabrication2, String testCalbr, 
			String testEquip, String others, String custEndProd, String comptInfo) {
		this.id=id;
		this.exeId=ex;
		this.adpName=adpName;
		this.accName=accName;
		this.owner=owner;
		this.orgType=orgType;
		this.industryType=industType;
		this.activity=activity;
		this.reviewPeriod=revPerid2;
		this.visitfreq=visitFreq2;
		this.contfreq=contFreq2;
		this.designSpent=designSpent2;
		this.productionSpent=prodSpent;
		this.electronicComponents=electrComp;
		this.cables=cables2;
		this.connectors=connectors2;
		this.devlpTools=devTools;
		this.MROProd=mROProd2;
		this.fabrication=fabrication2;
		this.testCalibration=testCalbr;
		this.testEquipment=testEquip;
		this.othersSpend=others;
		this.custEndProdDetails=custEndProd;
		this.competitorInfo=comptInfo;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Executives getExeId() {
		return exeId;
	}
	public void setExeId(Executives exeId) {
		this.exeId = exeId;
	}
	public String getAdpName() {
		return adpName;
	}
	public void setAdpName(String adpName) {
		this.adpName = adpName;
	}
	public String getAccName() {
		return accName;
	}
	public void setAccName(String accName) {
		this.accName = accName;
	}
	public String getOwner() {
		return owner;
	}
	public void setOwner(String owner) {
		this.owner = owner;
	}
	public String getReviewPeriod() {
		return reviewPeriod;
	}
	public void setReviewPeriod(String reviewPeriod) {
		this.reviewPeriod = reviewPeriod;
	}
	public String getVisitfreq() {
		return visitfreq;
	}
	public void setVisitfreq(String visitfreq) {
		this.visitfreq = visitfreq;
	}
	public String getContfreq() {
		return contfreq;
	}
	public void setContfreq(String contfreq) {
		this.contfreq = contfreq;
	}
	public String getOrgType() {
		return orgType;
	}
	public void setOrgType(String orgType) {
		this.orgType = orgType;
	}
	public String getIndustryType() {
		return industryType;
	}
	public void setIndustryType(String industryType) {
		this.industryType = industryType;
	}
	public String getActivity() {
		return activity;
	}
	public void setActivity(String activity) {
		this.activity = activity;
	}
	public String getDesignSpent() {
		return designSpent;
	}
	public void setDesignSpent(String designSpent) {
		this.designSpent = designSpent;
	}
	public String getProductionSpent() {
		return productionSpent;
	}
	public void setProductionSpent(String productionSpent) {
		this.productionSpent = productionSpent;
	}
	public String getElectronicComponents() {
		return electronicComponents;
	}
	public void setElectronicComponents(String electronicComponents) {
		this.electronicComponents = electronicComponents;
	}
	public String getCables() {
		return cables;
	}
	public void setCables(String cables) {
		this.cables = cables;
	}
	public String getConnectors() {
		return connectors;
	}
	public void setConnectors(String connectors) {
		this.connectors = connectors;
	}
	public String getDevlpTools() {
		return devlpTools;
	}
	public void setDevlpTools(String devlpTools) {
		this.devlpTools = devlpTools;
	}
	public String getMROProd() {
		return MROProd;
	}
	public void setMROProd(String mROProd) {
		MROProd = mROProd;
	}
	public String getFabrication() {
		return fabrication;
	}
	public void setFabrication(String fabrication) {
		this.fabrication = fabrication;
	}
	public String getTestCalibration() {
		return testCalibration;
	}
	public void setTestCalibration(String testCalibration) {
		this.testCalibration = testCalibration;
	}
	public String getTestEquipment() {
		return testEquipment;
	}
	public void setTestEquipment(String testEquipment) {
		this.testEquipment = testEquipment;
	}
	public String getOthersSpend() {
		return othersSpend;
	}
	public void setOthersSpend(String othersSpend) {
		this.othersSpend = othersSpend;
	}
	public String getCustEndProdDetails() {
		return custEndProdDetails;
	}
	public void setCustEndProdDetails(String custEndProdDetails) {
		this.custEndProdDetails = custEndProdDetails;
	}
	public String getCompetitorInfo() {
		return competitorInfo;
	}
	public void setCompetitorInfo(String competitorInfo) {
		this.competitorInfo = competitorInfo;
	}
		
	
}
